<#assign s=JspTaglibs["/WEB-INF/tld/struts-tags.tld"] />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<#import "/WEB-INF/tpl/public/DetailHead.ftl" as dHead> <@dHead.detailHead title="菜单项管理">
<link rel="stylesheet" type="text/css" href="${c}/css/${USER_SESSION.theme}/ui.jqgrid.css" />
<link rel="stylesheet" type="text/css" href="${c}/js/ztree/zTreeStyle.css" />
<script language="javascript" src="${c}/js/ui/i18n/grid.locale-cn.js"></script>
<script language="javascript" src="${c}/js/ui/jquery.jqGrid.min.js"></script>
<script language="javascript" src="${c}/js/ui/jquery.ui.accordion.min.js"></script>
<script language="javascript" src="${c}/js/ztree/jquery.ztree-2.6.min.js"></script>
<script language="javascript" src="${c}/js/core/base.js"></script>
<script language="javascript" src="${c}/js/core/menu_tree.js"></script>
<script language="javascript" src="${c}/js/oa/system/menuitem-edit.js"></script>
</@dHead.detailHead>
<body>

<#import "/WEB-INF/tpl/public/DetailContent.ftl" as dc>
<@dc.detailContent title="菜单项设置">
<@s.form id="menuitemForm" name="form1" action="saveMenuItem.action" method="post">
<table align="center" width="100%">
	<tr>
		<td colspan="7" class="subtitle">菜单项信息</td>
		<@s.hidden name="edit" id="edit_flag" Class="required"/>
		<@s.hidden name="menu.system_code" id="system_code" Class="required"/>
		<@s.hidden name="menuitem.menuitem_id" id="menuitem_id"/>
	</tr>
	<tr>
		<td width="15%" class="label">菜单项编码(<font color="red">*</font>):</td>
		<td width="35%"><@s.textfield name="menuitem.menuitem_code" id="menuitem_code" maxlength="20"/>&nbsp;<span id="menuitem_code_msg" style="color:red"></span></td>
		<td width="15%" class="label">菜单项名称(<font color="red">*</font>):</td>
		<td><@s.textfield id="menuitem_name" name="menuitem.menuitem_name" maxlength="20"/>&nbsp;<span id="menuitem_name_msg" style="color:red"></span></td>
	</tr>
	<tr>
		<td width="15%" class="label">上级菜单(<font color="red">*</font>):</td>
		<td colspan="3">
		<@s.hidden name="menuitem.menu_id" id="menu_id"/>
		<@s.textfield name="menuitem.menu_name" readonly="true" id="menu_name" maxlength="20" onclick="showMenu('menu_name'); return false;" Class="required"/>
			&nbsp;<a id="menuBtn" href="#" onclick="showMenu('menu_name'); return false;">选择</a>
		&nbsp;<span id="menu_id_msg" style="color:red"></span></td>
	</tr>
	<tr>
		<td width="15%" class="label">URL类型:</td>
		<td width="35%"><select id="url_type" name="menuitem.url_type" style="width:150px">
			<#if menuitem?exists&&menuitem.url_type?exists&&menuitem.url_type=='0'><option selected="selected" value="0">无地址</option><#else><option value="0">无地址</option></#if>
			<#if menuitem?exists&&menuitem.url_type?exists&&menuitem.url_type=='1'><option selected="selected" value="1">相对地址</option><#else><option value="1">相对地址</option></#if>
			<#if menuitem?exists&&menuitem.url_type?exists&&menuitem.url_type=='2'><option selected="selected" value="2">绝对地址</option><#else><option value="2">绝对地址</option></#if>
		</select></td>
		<td width="15%" class="label">菜单项地址:</td>
		<td><@s.textfield name="menuitem.menuitem_url" id="menuitem_url" maxlength="1024"/>&nbsp;<span id="menuitem_url_msg" style="color:red"></span></td>
	</tr>
	<tr>
		<td width="15%" class="label">菜单项序号(<font color="red">*</font>):</td>
		<td width="35%"><@s.textfield name="menuitem.menuitem_seq" id="menuitem_seq" maxlength="3"/>&nbsp;<span id="menuitem_seq_msg" style="color:red"></span></td>
		<td width="15%" class="label">已启用:</td>
		<td><#if menuitem?exists&&menuitem.used_flag?exists&&menuitem.used_flag=='1'><input type="checkbox" name="menuitem.used_flag" value='1' id='used_flag' checked="checked"/>
		<#else><input type="checkbox" name="menuitem.used_flag" value='1' id='used_flag'/></#if></td>
	</tr>
</table>
<div class="action" align="center">
<input type="button" value="保存" id="saveMenuItemButt"/>&nbsp;&nbsp;
<input type="button" value="取消" onClick="window.close()"/>&nbsp;&nbsp;</div>
</@s.form>
</@dc.detailContent>
<div id="DropdownMenuBackground" style="display:none; position:absolute; height:200px; min-width:150px; background-color:white;border:1px solid;overflow-y:auto;overflow-x:auto;">
	<ul id="dropdownMenu" class="tree"></ul>
</div>
</body>
</html>